<extend name='Index:index'/>
<block name='admin_right'>
	<div class="right col-md-9">
		<form class="col-sm-7" action="<{:U('edit_handle')}>" method="post" enctype="multipart/form-data">
				  <div class="form-group">
				    <label class="control-label">广告位置</label> 
				      <input type="checkbox"  name="pos[]" value="0">上
				      <input type="checkbox"  name="pos[]" value="1">右
				      <input type="checkbox"  name="pos[]" value="2">下
				      <input type="checkbox"  name="pos[]" value="3">左
				  </div>
				  <div class="form-group">
				    <label class="control-label">广告链接</label>
				      <input type="text" class="form-control " name="url" value="<{$row['url']}>">
				  </div>
				 <div class="form-group">
				   <label class="control-label">原图</label>
				  	<img src="__PUBLIC__/upload/t_<{$row['img']}>" style=''  alt="">
				 </div>
				 <div class="form-group">
				   <label class="control-label">上传图片</label>
				    <input type="file"  name="img">
				 </div>
				 <input type="hidden" name="id" value="<{$row['id']}>">
				 <input type="hidden" name='imgsrc' value="<{$row['img']}>">
				  <div class="form-group">
				      <button type="submit" class="btn btn-primary">修改</button>
				      <button type="reset" class="btn btn-danger">取消</button>
				  </div>
				</form>
	</div>
</block>